#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#define OFFSETOF(type,member)     (size_t)&(((type*)0)->member)
struct stu
{
	char a;
	int i;
	char c;
};

int main()
{
	
	printf("%d\n", OFFSETOF(struct stu , a));
	printf("%d\n", OFFSETOF(struct stu , i));
	printf("%d\n", OFFSETOF(struct stu , c));

	return 0;
}
